﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020013E5 RID: 5093
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainPartyGameCard : IMessage<TrainPartyGameCard>, IMessage, IEquatable<TrainPartyGameCard>, IDeepCloneable<TrainPartyGameCard>, IBufferMessage
	{
		// Token: 0x17004033 RID: 16435
		// (get) Token: 0x0600E407 RID: 58375 RVA: 0x00261955 File Offset: 0x0025FB55
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainPartyGameCard> Parser
		{
			get
			{
				return TrainPartyGameCard._parser;
			}
		}

		// Token: 0x17004034 RID: 16436
		// (get) Token: 0x0600E408 RID: 58376 RVA: 0x0026195C File Offset: 0x0025FB5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainPartyGameCardReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17004035 RID: 16437
		// (get) Token: 0x0600E409 RID: 58377 RVA: 0x0026196E File Offset: 0x0025FB6E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainPartyGameCard.Descriptor;
			}
		}

		// Token: 0x0600E40A RID: 58378 RVA: 0x00261975 File Offset: 0x0025FB75
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGameCard()
		{
		}

		// Token: 0x0600E40B RID: 58379 RVA: 0x00261988 File Offset: 0x0025FB88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGameCard(TrainPartyGameCard other) : this()
		{
			this.uniqueId_ = other.uniqueId_;
			this.hMKMKBELCLG_ = other.hMKMKBELCLG_.Clone();
			this.nAGKACACHGD_ = other.nAGKACACHGD_;
			this.cardId_ = other.cardId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E40C RID: 58380 RVA: 0x002619E1 File Offset: 0x0025FBE1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGameCard Clone()
		{
			return new TrainPartyGameCard(this);
		}

		// Token: 0x17004036 RID: 16438
		// (get) Token: 0x0600E40D RID: 58381 RVA: 0x002619E9 File Offset: 0x0025FBE9
		// (set) Token: 0x0600E40E RID: 58382 RVA: 0x002619F1 File Offset: 0x0025FBF1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint UniqueId
		{
			get
			{
				return this.uniqueId_;
			}
			set
			{
				this.uniqueId_ = value;
			}
		}

		// Token: 0x17004037 RID: 16439
		// (get) Token: 0x0600E40F RID: 58383 RVA: 0x002619FA File Offset: 0x0025FBFA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> HMKMKBELCLG
		{
			get
			{
				return this.hMKMKBELCLG_;
			}
		}

		// Token: 0x17004038 RID: 16440
		// (get) Token: 0x0600E410 RID: 58384 RVA: 0x00261A02 File Offset: 0x0025FC02
		// (set) Token: 0x0600E411 RID: 58385 RVA: 0x00261A0A File Offset: 0x0025FC0A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint NAGKACACHGD
		{
			get
			{
				return this.nAGKACACHGD_;
			}
			set
			{
				this.nAGKACACHGD_ = value;
			}
		}

		// Token: 0x17004039 RID: 16441
		// (get) Token: 0x0600E412 RID: 58386 RVA: 0x00261A13 File Offset: 0x0025FC13
		// (set) Token: 0x0600E413 RID: 58387 RVA: 0x00261A1B File Offset: 0x0025FC1B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CardId
		{
			get
			{
				return this.cardId_;
			}
			set
			{
				this.cardId_ = value;
			}
		}

		// Token: 0x0600E414 RID: 58388 RVA: 0x00261A24 File Offset: 0x0025FC24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainPartyGameCard);
		}

		// Token: 0x0600E415 RID: 58389 RVA: 0x00261A34 File Offset: 0x0025FC34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainPartyGameCard other)
		{
			return other != null && (other == this || (this.UniqueId == other.UniqueId && this.hMKMKBELCLG_.Equals(other.hMKMKBELCLG_) && this.NAGKACACHGD == other.NAGKACACHGD && this.CardId == other.CardId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E416 RID: 58390 RVA: 0x00261AA4 File Offset: 0x0025FCA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.UniqueId != 0U)
			{
				num ^= this.UniqueId.GetHashCode();
			}
			num ^= this.hMKMKBELCLG_.GetHashCode();
			if (this.NAGKACACHGD != 0U)
			{
				num ^= this.NAGKACACHGD.GetHashCode();
			}
			if (this.CardId != 0U)
			{
				num ^= this.CardId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E417 RID: 58391 RVA: 0x00261B23 File Offset: 0x0025FD23
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E418 RID: 58392 RVA: 0x00261B2B File Offset: 0x0025FD2B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E419 RID: 58393 RVA: 0x00261B34 File Offset: 0x0025FD34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.NAGKACACHGD != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.NAGKACACHGD);
			}
			if (this.CardId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.CardId);
			}
			this.hMKMKBELCLG_.WriteTo(ref output, TrainPartyGameCard._repeated_hMKMKBELCLG_codec);
			if (this.UniqueId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.UniqueId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E41A RID: 58394 RVA: 0x00261BBC File Offset: 0x0025FDBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.UniqueId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.UniqueId);
			}
			num += this.hMKMKBELCLG_.CalculateSize(TrainPartyGameCard._repeated_hMKMKBELCLG_codec);
			if (this.NAGKACACHGD != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.NAGKACACHGD);
			}
			if (this.CardId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CardId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E41B RID: 58395 RVA: 0x00261C40 File Offset: 0x0025FE40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainPartyGameCard other)
		{
			if (other == null)
			{
				return;
			}
			if (other.UniqueId != 0U)
			{
				this.UniqueId = other.UniqueId;
			}
			this.hMKMKBELCLG_.Add(other.hMKMKBELCLG_);
			if (other.NAGKACACHGD != 0U)
			{
				this.NAGKACACHGD = other.NAGKACACHGD;
			}
			if (other.CardId != 0U)
			{
				this.CardId = other.CardId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E41C RID: 58396 RVA: 0x00261CB5 File Offset: 0x0025FEB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E41D RID: 58397 RVA: 0x00261CC0 File Offset: 0x0025FEC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num == 40U)
					{
						this.NAGKACACHGD = input.ReadUInt32();
						continue;
					}
					if (num == 48U)
					{
						this.CardId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 72U || num == 74U)
					{
						this.hMKMKBELCLG_.AddEntriesFrom(ref input, TrainPartyGameCard._repeated_hMKMKBELCLG_codec);
						continue;
					}
					if (num == 88U)
					{
						this.UniqueId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005A37 RID: 23095
		private static readonly MessageParser<TrainPartyGameCard> _parser = new MessageParser<TrainPartyGameCard>(() => new TrainPartyGameCard());

		// Token: 0x04005A38 RID: 23096
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005A39 RID: 23097
		public const int UniqueIdFieldNumber = 11;

		// Token: 0x04005A3A RID: 23098
		private uint uniqueId_;

		// Token: 0x04005A3B RID: 23099
		public const int HMKMKBELCLGFieldNumber = 9;

		// Token: 0x04005A3C RID: 23100
		private static readonly FieldCodec<uint> _repeated_hMKMKBELCLG_codec = FieldCodec.ForUInt32(74U);

		// Token: 0x04005A3D RID: 23101
		private readonly RepeatedField<uint> hMKMKBELCLG_ = new RepeatedField<uint>();

		// Token: 0x04005A3E RID: 23102
		public const int NAGKACACHGDFieldNumber = 5;

		// Token: 0x04005A3F RID: 23103
		private uint nAGKACACHGD_;

		// Token: 0x04005A40 RID: 23104
		public const int CardIdFieldNumber = 6;

		// Token: 0x04005A41 RID: 23105
		private uint cardId_;
	}
}
